import os

from utils import date_util, read_config

today_str = date_util.get_format_date_str("%Y-%m-%d")
result_path = os.path.join(read_config.data_path, 'result', '突破均线', today_str, '历史验证')
result_file_name = '验证结果'
view_file_path = os.path.join(result_path, '验证')

if not os.path.exists(view_file_path):
    os.makedirs(view_file_path)  # 没有创建文件夹


# 验证北向资金
def val_north(list_s, size):
    # 获取北向资金历史
    print('获取北向资金历史')


# 所有的触发都由突破五日均线触发
def monitor_stock(code, name, size):
    print('a')


if __name__ == '__main__':
    stock_list = [
        {'code': '002594', 'name': '比亚迪'},
        {'code': '600660', 'name': '福耀玻璃'},
        {'code': '600859', 'name': '王府井'},
    ]
    val_north(stock_list, 120)
